import request from '../../utils/request'
/**
 * Author: Tzk
 * Name: 登录接口
 * Date: 2024/6/15
 */

// 登录方法
export function login(accountNo, password) {
    const data = {
        accountNo,
        password,
    }
    return request({
        url: '/book-sys-service/admin/v1/user/login',
        headers: {
            isToken: false,
            app_id:false,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

// 登录后应用自动查询
export function seachApp() {
    return request({
        url: '/book-account-service/admin/v1/app/query-app-list',
        headers: {
            isToken: true,
            app_id:false,
            repeatSubmit: false
        },
        method: 'get'
    })
}

